$(window).on("touchstart", function(ev) {
    var e = ev.originalEvent;
    console.log(e.touches);
	$('#headerbanner').html('touchstart '+e.touches);
});
$(window).on("mousedown", function(ev) {
    //var e = ev.originalEvent;
    //console.log(e.touches);
	$('#headerbanner').html('touchstart ');
});
$(window).on("touchend", function(ev) {
    var e = ev.originalEvent;
    console.log(e.touches);
	$('#headerbanner').html('touchend '+e.touches);
});
$(window).on("mouseup", function(ev) {
    //var e = ev.originalEvent;
    //console.log(e.touches);
	$('#headerbanner').html('touchend ');
});
/*
	window.addEventListener("touchstart", function(ev){
		console.log(ev.touches); // good
    });

	OR
	
	$('#element').bind('touchstart', function(event) 
	{
		$('#log').append(event.originalEvent.touches.length+'<br/>');
	});

	$('#element').bind('touchmove', function(event) 
	{
		$('#log').append(event.originalEvent.touches.length+'<br/>');
	});

	$('#element').bind('touchend', function(event) 
	{
		$('#log').append(event.originalEvent.touches.length+'<br/>');
	});
	/////
	$(document).on('click', 'span', function () {
    alert(this.id);
});
*/
